source/bindbc/bgfx/dynload.d(54,27): Error: `libName.ptr` cannot be used in `@safe` code, use `&libName[0]` instead source/bindbc/bgfx/dynload.d(73,32): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_attachment_init` source/bindbc/bgfx/dynload.d(73,19): Error: cast from `extern (C) void function(bgfx_attachment_t*, bgfx_texture_handle_t, bgfx_access_t, ushort, ushort, byte) nothrow @nogc*` to `void**` not allowed in safe code source/bindbc/bgfx/dynload.d(73,81): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_attachment_init` source/bindbc/bgfx/dynload.d(73,32): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_begin` source/bindbc/bgfx/dynload.d(73,19): Error: cast from `extern (C) bgfx_vertex_layout_t* function(bgfx_vertex_layout_t*, bgfx_renderer_type_t) nothrow @nogc*` to `void**` not allowed in safe code source/bindbc/bgfx/dynload.d(73,81): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_begin` source/bindbc/bgfx/dynload.d(73,32): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_add` source/bindbc/bgfx/dynload.d(73,19): Error: cast from `extern (C) bgfx_vertex_layout_t* function(bgfx_vertex_layout_t*, bgfx_attrib_t, byte, bgfx_attrib_type_t, bool, bool) nothrow @nogc*` to `void**` not allowed in safe code source/bindbc/bgfx/dynload.d(73,81): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_add` source/bindbc/bgfx/dynload.d(73,32): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_decode` source/bindbc/bgfx/dynload.d(73,19): Error: cast from `extern (C) void function(const(bgfx_vertex_layout_t)*, bgfx_attrib_t, byte*, bgfx_attrib_type_t*, bool*, bool*) nothrow @nogc*` to `void**` not allowed in safe code source/bindbc/bgfx/dynload.d(73,81): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_decode` source/bindbc/bgfx/dynload.d(73,32): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_has` source/bindbc/bgfx/dynload.d(73,19): Error: cast from `extern (C) bool function(const(bgfx_vertex_layout_t)*, bgfx_attrib_t) nothrow @nogc*` to `void**` not allowed in safe code source/bindbc/bgfx/dynload.d(73,81): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_has` source/bindbc/bgfx/dynload.d(73,32): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_skip` source/bindbc/bgfx/dynload.d(73,19): Error: cast from `extern (C) bgfx_vertex_layout_t* function(bgfx_vertex_layout_t*, byte) nothrow @nogc*` to `void**` not allowed in safe code source/bindbc/bgfx/dynload.d(73,81): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_skip` source/bindbc/bgfx/dynload.d(73,32): Error: `@safe` function `loadBgfx` cannot access `__gshared` data `bgfx_vertex_layout_end` /opt/dmd-safe/dmd/dmd-safe failed with exit code 1.